<div id="homelink">
    <a href="<?php echo baseurl; ?>">Trang chủ</a> &raquo; <a href="<?php echo baseurl; ?>">Tài liệu kỹ thuật</a> &raquo; <a href="#">Thủ thuật chung</a>
</div>
<div id="homecontent">
    <?php
    require("functions/document/trick.php");
    $trick = new trick();
    $data = $trick->getdata();
    foreach ($data as $x) {
    ?>
        <div id="doc_title">
            <h2>
            <?php
            echo $x['doc_title'];
            ?>
            </h2>
        </div>
        <div id="doc_summary">
            <?php
            echo $x['doc_summary']."...";
            ?>
        </div>
        <div id="readmore">
            <a href="<?php echo baseurl . "?page=document&act=detail&id=$x[doc_id]"; ?>"><img src="images/news/readmore.png" width="90px"></a>
        </div>
    <?php
    }
    ?>
</div>